package entity;

import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;

/**
 * @ClassName BusinessOrder
 * @Description TODO
 * @Author lzq
 * @Date 2021/6/19 22:00
 */
public class BusinessOrder {
    private final SimpleIntegerProperty order_id;
    private final SimpleStringProperty name;
    private final SimpleStringProperty userName;
    private final SimpleStringProperty userAddress;
    private final SimpleIntegerProperty quantity;
    private final SimpleStringProperty status;
    private final SimpleStringProperty order_date;

    public BusinessOrder(Integer order_id, String name, String userName,
                         String userAddress, Integer quantity,
                         String status, String order_date) {
        this.order_id = new SimpleIntegerProperty(order_id);
        this.name = new SimpleStringProperty(name);
        this.quantity = new SimpleIntegerProperty(quantity);
        this.status = new SimpleStringProperty(status);
        this.order_date = new SimpleStringProperty(order_date);
        this.userName =new SimpleStringProperty(userName) ;
        this.userAddress = new SimpleStringProperty(userAddress);
    }

    public int getOrder_id() {
        return order_id.get();
    }

    public SimpleIntegerProperty order_idProperty() {
        return order_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id.set(order_id);
    }

    public String getUserName() {
        return userName.get();
    }

    public SimpleStringProperty userNameProperty() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName.set(userName);
    }

    public String getUserAddress() {
        return userAddress.get();
    }

    public SimpleStringProperty userAddressProperty() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress.set(userAddress);
    }

    public String getName() {
        return name.get();
    }

    public SimpleStringProperty nameProperty() {
        return name;
    }

    public int getQuantity() {
        return quantity.get();
    }

    public SimpleIntegerProperty quantityProperty() {
        return quantity;
    }

    public String getStatus() {
        return status.get();
    }

    public SimpleStringProperty statusProperty() {
        return status;
    }

    public String getOrder_date() {
        return order_date.get();
    }

    public SimpleStringProperty order_dateProperty() {
        return order_date;
    }


    public void setName(String name) {
        this.name.set(name);
    }

    public void setQuantity(int quantity) {
        this.quantity.set(quantity);
    }

    public void setStatus(String status) {
        this.status.set(status);
    }

    public void setOrder_date(String order_date) {
        this.order_date.set(order_date);
    }
}
